//js源码
/*
const bookList = [{
    author:'xiaoming',
    type:'history',
    range:'2001-2021'
},{
    author: 'xiaoli',
    type:'story',
    theme:'love'
}]
*/



type IBookList = Array<{
    author: string;
} & ({
    type: 'history';
    range: string;
} | {
    type: 'story';
    theme: string;
})>



